package com.skstudio.nuprint.view;

import java.io.File;

import android.app.Activity;
import android.os.Bundle;

import com.skstudio.nuprint.R;

public class PsViewActivity extends Activity {
	PostScriptPageView mPsView = null;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view_ps_main);
              	
        mPsView = (PostScriptPageView) findViewById(R.id.postScriptPageView1);
		String path = getIntent().getStringExtra("Path");
		mPsView.setFile(new File(path));
    }
    
    @Override
    protected void onDestroy () {
    	super.onDestroy();
    	mPsView.close();
    }
}
